# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=xfce4-weather-plugin
pkgver=0.11.1
pkgrel=1
pkgdesc="Weather plugin for the Xfce desktop environment"
url="https://docs.xfce.org/panel-plugins/xfce4-weather-plugin"
arch="all"
license="GPL-2.0-or-later"
makedepends="xfce4-panel-dev libxfce4ui-dev libsoup-dev libxml2-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-weather-plugin/${pkgver%.*}/xfce4-weather-plugin-$pkgver.tar.bz2"

build() {
	export GEONAMES_USERNAME=rzjRsXj7it8epAV
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
625b2aab1ded60eb39171969cd67224569cf7477c0a6e47aa5600a4a09b4a2cecd4b830f4c01669e6f2289edd4e7d882b15d56526a1211b8b5b86141b585778f  xfce4-weather-plugin-0.11.1.tar.bz2
"
